import static org.junit.Assert.*;

import org.junit.Test;
import java.awt.Point;


public class UniverseTest {

	@Test
	public void testIsValid() {
		Universe uni = new Universe();
		
		assertFalse("Fail universe test 1", uni.isValid(new Point(265,142)));
		assertTrue("Fail universe test 2", uni.isValid(new Point(0,0)));
		assertFalse("Fail universe test 3", uni.isValid(new Point(591,301)));
		assertFalse("Fail universe test 4", uni.isValid(new Point(-1,-1)));
		assertTrue("Fail universe test 5", uni.isValid(new Point(590,300)));
		assertFalse("Fail universe test 6", uni.isValid(new Point(591,300)));
		assertFalse("Fail universe test 7", uni.isValid(new Point(590,301)));
		
	}
	
	@Test
	public void testIsValidNull(){
		Universe uni = new Universe();
		assertFalse("Fail universe test 1", uni.isValid(null));
	}

}
